package epam.marchenko.library.services;

import java.util.List;

import epam.marchenko.library.domain.Book;
import epam.marchenko.library.domain.OutcomeRecord;
import epam.marchenko.library.domain.User;

public interface OutcomeRecordService {
	OutcomeRecord find(OutcomeRecord record);
	void addOutcomeRecord(OutcomeRecord record);
	boolean isRecordClosable(OutcomeRecord record);
	double countPrice(OutcomeRecord record);
	List<OutcomeRecord> getActiveOrdersForUser(User user);
	List<OutcomeRecord> getAllOutcomeRecords();
	List<OutcomeRecord> getAllOutcomeRecordsForBook(Book book);
	void deleteOutcomeRecordById(int id);
}
